package com.czz.portal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: Teacher
 * @Author Czz
 * @Date 2020/1/6
 * @Time 15:15
 **/
@Data
@TableName(value = "system_teacher")
@Accessors(chain = true)
public class Teacher {
    @TableId(value = "teacher_id", type = IdType.ID_WORKER_STR)
    private String teacherId;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "teacher_name")
    private String name;

    @TableField(value = "teacher_intro")
    private String intro;

    @TableField(value = "teacher_career")
    private String career;

    @TableField(value = "teacher_level")
    private Integer level;

    @TableField(value = "teacher_status")
    private Integer status;

    @TableField(value = "teacher_sort")
    private Integer sort;

    @TableField(value = "is_deleted")
    @TableLogic
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
